﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorkDAL.Voucher
{
    public class VoucherDetail_HdData
    {
        VoucherDataContext DataList = new VoucherDataContext();

        public static VoucherDetail_HdData Instance()
        {
            return new VoucherDetail_HdData();
        }

        public List<VcDetail_HD> VcDetail_HD_GetList(Guid voucherId)
        {
            var HoaDon = from c in DataList.VcDetail_HDs
                         where c.VoucherId == voucherId
                         select c;

            return HoaDon.ToList();
        }
    }
}
